<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .img {
            height: 300px;
            background-color: #f00;
            /* 背景图居中 */
            background: url(../images/家政4_06.jpg) no-repeat center center;
        }


        /* banner 的高度被图片撑开 */
        .banner img {
            /* 宽度铺满  不写高度 */
            width: 100%;
        }
    </style>
</head>

<body>
    <div class="img">
        <h3>客户案例</h3>
    </div>

    <div class="banner">
        <img src="../images/家政4_06.jpg" alt="">
    </div>
</body>

</html>